package com.jikedaquan.game.jwt.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.jikedaquan.game.jwt.entity.User;
import com.jikedaquan.game.jwt.mapper.UserMapper;
import com.jikedaquan.game.jwt.service.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户基本信息 服务实现类
 * </p>
 *
 * @author jiake
 * @since 2019-10-31
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Override
    public User getUserById(Integer userId) {
        //获取当前用户信息
      /*  QueryWrapper<User> queryWrapper = new QueryWrapper<User>()
                .eq("id", userId);*/
        User user = baseMapper.selectById(userId);
        return user;
    }
}
